package net.learn.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.learn.framework.common.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * 新闻管理
 */
@Data
@Schema(description = "新闻管理")
public class SysNewVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "uid")
    private String uid;

    @Schema(description = "新闻标题")
    private String title;

    @Schema(description = "内容详情")
    private String newContent;

    @Schema(description = "缩略图")
    private String newImg;

    @Schema(description = "浏览次数")
    private Integer view;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;
}
